/*
 * @Author: YYJ
 * @Date: 2023-12-16 15:18:08
 * @Description: 
 * @FilePath: \lgd-admin\config\routes.ts
 */
/*
 * @Author: YYJ
 * @Date: 2023-12-16 14:20:54
 * @Description: 
 * @FilePath: \lgd-admin\config\routes.ts
 */
export default [
  { path: '/system/login', component: './system/login', layout: false},
  
  { path: '/workbench', component: './workbench/index' },
  { path: '/', redirect: '/workbench' },
  { path: '*', layout: false, component: './404' },

  { path:"/study", redirect: '/study/overview'},
  { path:"/study/overview", component: "./study/overview"},
  { path:"/study/catalog", component: "./study/catalog"},
  { path:"/study/content", component: "./study/content"},
  
  { path:"/person", redirect: '/person/overview'},
  { path:"/person/overview", component: "./person/overview"},
  { path:"/person/account", component: './person/account'},
  { path:"/person/salary", component: './person/salary'},

  { path:"/operation", redirect: '/operation/overview'},
  { path:"/operation/overview", component: "./operation/overview"},
  { path:"/operation/member", component: "./operation/member"},
  { path:"/operation/appointment", component: "./operation/appointment"},

  {
    path: '/sysUser',
    routes: [],
  },
  { path: '/welcome', name: '欢迎', icon: 'smile', component: './Welcome' },
  {
    path: '/admin',
    name: '管理页',
    icon: 'crown',
    access: 'canAdmin',
    routes: [
      { path: '/admin', redirect: '/admin/sub-page' },
      { path: '/admin/sub-page', name: '二级管理页', component: './Admin' },
    ],
  }
];
